<!DOCTYPE html>
<html lang="en">

	<include file="Public:header" />
	<include file="Public:page_css" />
 
	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">

		<include file="Public:nav" />
		<div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-12">
                <h2>解绑上级</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="{:U('Index/index')}"><i class="fa fa-home"></i> 主页</a>
                    </li>
                    <li>会员管理</li>
                    <li><strong>解绑上级</strong></li>
                </ol>
            </div>              
        </div>
        <br />
		<link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/sldate/daterangepicker-bs3.css" />
		<script src="__PUBLIC__/Admin/js/jquery.min.js"></script>	
		<script type="text/javascript" src="__PUBLIC__/sldate/moment.js"></script>
		<script type="text/javascript" src="__PUBLIC__/sldate/daterangepicker.js"></script>

        <div class="row">
			<div class="col-sm-12">							    				  
			    <form name="admin_list_sea" class="form-search" method="post" action="__URL__/index">
					<div class="col-sm-3">
						<div class="input-group">
							<input type="text" name="key" id="key" class="form-control" value="{$val}" placeholder="输入需查询的用户名" />	
							<span class="input-group-btn"> 
				            	<button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button> 
				            </span>
						</div>
					</div>
				</form>			   			    
			</div>
		</div>		
		
		<br />
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5><i class="fa fa-tasks"></i> 用户解绑</h5>
					</div>
					<div class="ibox-content">
					<form id="leftnav" name="leftnav" method="post" action="" >
                    <input type="hidden" name="checkk" id="checkk" value="1" />
                   
						<table class="table table-bordered">
							<thead>
								<tr class="long-tr">
									<th width="10%">申请人id</th>
									<th width="10%">申请人姓名</th>
									<th width="10%">申请人手机号</th>
									<th width="10%">上级id</th>
									<th width="10%">上级姓名</th>
									<th width="10%">上级手机</th>
									<th width="10%">操作</th>
								</tr>
							</thead>
							<volist name="lists" id="vo">
								<tr>
								  	<td>{$vo.user_id}</td>
								  	<td>{$vo.user_truename}</td>
									<td>{$vo.user_mobile}</td>
									<td>{$vo.up_id}</td>
									<td>{$vo.up_truename}</td>
									<td>{$vo.up_mobile}</td>
									<td>	<eq name="vo.jb_status" value="1">已解绑<else/><a href="{:U('editjb',array('id'=>$vo['id']))}" class="btn btn-primary btn-xs">
											<i class="fa fa-paste"></i>审核
										
											</a>&nbsp;&nbsp;</eq>
										

										<a onclick="return del({$vo.id});" href="javascript:;" class="btn btn-danger btn-xs">
											<i class="fa fa-trash-o"></i> 删除</a>
									</td>
								</tr>	
							</volist>
							<tbody id="article_list"></tbody>
							
						</table>
					
					</form>
						
					<div id="AjaxPage" style=" text-align: right;"></div>
											
					</div>
				</div>
			</div>
		</div>
	<script type="text/javascript" src="__PUBLIC__/Common/laytpl/laytpl.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Common/laypage/laypage.js"></script>
	<include file="Public:footer" />
	</body>
	<script>
function del(id) {

$.post('{:U("delOption")}',
		  {id:id},
	function(data){

		if(data==1){
			layer.msg('删除成功', {icon: 1,time:1000}, function(index){
		 			layer.close(index);
					});
			 window.location.reload();
			
		}else{
			layer.msg('删除失败', {icon:2,time:1000}, function(index){
		 			layer.close(index);
					});
		}
	});




					
			}

	</script>

</html>

